<template>
    <div class="contentBox animated fadeIn" :style="{height:winHeight}">
        <img src="../../static/image/page1.jpg" alt="">
        <div class="formBox">
            <h3>1. 遇到困难的时候，你通常会：</h3>
            <ul class="btnList">
                <li v-for="item in btnList">
                    <a :val="item.val" @click.stop="gotoNext">{{item.name}}</a>
                </li>
            </ul>
        </div>
    </div>
</template>

<script>
    import router from '../router/index'
    import buttons from '../Modular/buttons'
    export default {
        name: "component_name",
        data() {
            return {
                btnTitle: '下一步',
                winHeight: $(window).innerHeight() + 'px',
                btnList:[
                    {name:'三思后行',val:'1'},
                    {name:'跟着感觉走',val:'2'}
                ]
            };
        },
        components: {
            buttons
        },
        methods: {
            gotoNext: function() {
                router.push({
                    name: 'page2'
                })
            }
        }
    };
</script>

<style lang="css" scoped>
    
</style>